#include <QDebug>
#include "passdialog.h"
#include "WijiSettings.h"
PassDialog::PassDialog(QWidget *parent = 0) : QDialog() {
    ui.setupUi(this);
    //connect(ui.buttonBox,SIGNAL(accepted()),this,SLOT(checkPass()));
}
bool PassDialog::checkPass() {
    WijiSettings* ws = WijiSettings::getSelf();
    qDebug() << ui.lineEdit->text();
    if (ui.lineEdit->text() == ws->getValue("kiosk_password").toString())
        return true;
    return false;
}
